package com.example.w.dao;

import com.example.w.common.pojo.Order;
import com.example.w.common.pojo.OrderItem;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

@Mapper
public interface OrderItemDao {
    int deleteByPrimaryKey(Long id);

    int insert(OrderItem record);

    int insertSelective(OrderItem record);

    int insertSelective(Map<String, Object> record);

    OrderItem selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(OrderItem record);

    int updateByPrimaryKey(OrderItem record);


    Order selectByOrderId(Long id);

    void insertOrderItems(List<OrderItem> orderItemList);
}